<?php echo $this->fetch('header.html'); ?>
<div> 
<?php echo $this->fetch('kucun/nav.html'); ?>
<?php $this->assign("typelist",M("kucun")->typelist()); ?>
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>kcid</td>
    
   <td>名称</td>
   <td>status</td>
   <td>类型</td>
    
<td>操作</td>
  </tr>
 <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<tr>
   <td><?php echo $this->_var['c']['kcid']; ?></td>
   
   <td><?php echo $this->_var['c']['title']; ?></td>
   <td><?php echo $this->_var['c']['status']; ?></td>
   <td><?php echo $this->_var['typelist'][$this->_var['c'][typeid]]; ?></td>
    
<td><a href="<?php echo $this->_var['appadmin']; ?>?m=kucun&a=add&kcid=<?php echo $this->_var['c']['kcid']; ?>">编辑</a> 
<a href="<?php echo $this->_var['appadmin']; ?>?m=kucun_admin&shopid=<?php echo $this->_var['c']['kcid']; ?>">管理员</a> 
<a href="<?php echo $this->_var['appadmin']; ?>?m=kucun_area&shopid=<?php echo $this->_var['c']['kcid']; ?>">配送区域</a>

<a href="<?php echo $this->_var['appadmin']; ?>?m=kucun_product&shopid=<?php echo $this->_var['c']['kcid']; ?>">产品管理</a>
<a href="<?php echo $this->_var['appkucun']; ?>?m=login&a=admin&kcid=<?php echo $this->_var['c']['kcid']; ?>" target="_blank">去管理</a>
<?php if ($this->_var['c']['koudai'] == 0): ?>
<a href="javascript:;" class="delete" url="<?php echo $this->_var['appadmin']; ?>?m=kucun&a=delete&kcid=<?php echo $this->_var['c']['kcid']; ?>">删除</a>
<?php endif; ?>
</td>
  </tr>
   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 </table>
<div><?php echo $this->_var['pagelist']; ?></div>
</div> 
<?php echo $this->fetch('footer.html'); ?>